﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using OnlineEducation.Data.Entities;

namespace OnlineEducation.Models.CourseViewModels
{
    public class CourseViewModel
    {
        /// <summary>
        /// 全部的课程数量
        /// </summary>
        public int TotalAllCourseCount { get; set; }

        /// <summary>
        /// 已经发布的课程数量
        /// </summary>
        public int TotalAllPublishedCourseCount { get; set; }
        /// <summary>
        /// 已经关闭的课程数量
        /// </summary>
        public int TotalAllClosedCourseCount { get; set; }

        /// <summary>
        /// 未发布的课程数量
        /// </summary>
        public int TotalAllUnPublishedCourseCount { get; set; }

        public List<CourserStudent> CourserStudents { get; set; }
    }

    public class CourserStudent:Course
    {
        public int StudentCount { get; set; }
    }
}
